package com.quyunshuo.module.home.activity.help

import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import androidx.activity.viewModels
import androidx.lifecycle.lifecycleScope
import com.quyunshuo.edwinpro.base.utils.BarUtils.addMarginTopEqualStatusBarHeight
import com.quyunshuo.edwinpro.common.ui.BaseActivity
import com.quyunshuo.module.home.activity.concentration.ConcentrationViewModel
import com.quyunshuo.module.home.databinding.HomeActivityHelpBinding
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.launch

@AndroidEntryPoint
class HelpActivity :
    BaseActivity<HomeActivityHelpBinding, ConcentrationViewModel>() {

    companion object {
        fun newInstance(context: Context) {
            context.startActivity(Intent(context, HelpActivity::class.java))
        }
    }


    /**
     * 通过 viewModels() + Hilt 获取 ViewModel 实例
     */
    override val mViewModel by viewModels<ConcentrationViewModel>()


    override fun createVB() = HomeActivityHelpBinding.inflate(layoutInflater)


    @SuppressLint("ClickableViewAccessibility")
    override fun HomeActivityHelpBinding.initView() {
        addMarginTopEqualStatusBarHeight(root)
        composeView.setContent {
            HelpPage()
        }

    }


    override fun onPause() {
        super.onPause()
    }


    override fun HomeActivityHelpBinding.initListener() {


    }


    override fun initObserve() {


    }

    override fun initRequestData() {
        lifecycleScope.launch {

        }
    }


    override fun onAttachedToWindow() {
        super.onAttachedToWindow()
    }

    override fun onDetachedFromWindow() {
        super.onDetachedFromWindow()
    }

}

